#!/bin/sh
echo "postinst......"

# [ -x /userdata/etc/rawos.sh ] || exit 0
# mkdir -p /userdata/bin
# mkdir -p /userdata/lib
# mkdir -p /userdata/etc


## 程序
cp /tmp/coreman-daemon /userdata/bin/
cp /tmp/input-daemon /userdata/bin/
cp /tmp/output-daemon /userdata/bin/
cp /tmp/scangenius-daemon /userdata/bin/
cp /tmp/jsontran /userdata/bin/
chmod 777 /userdata/bin/*

## 库
cp /tmp/libcom_eth.so /userdata/lib/
cp /tmp/libcom_hid.so /userdata/lib/
cp /tmp/libcom_uart.so /userdata/lib/
cp /tmp/libraw_common.so /userdata/lib/
cp /tmp/libraw_public.so /userdata/lib/

## etc


#启动程序
/userdata/etc/rawos.sh start
##

